//
//  MyConfig.h
//  SJChinese
//
//  Created by zhang jieyi on 12-3-21.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#define KEY @"SDFGH@#$%^&*"

#define Video_Download_State_Default @"0"
#define Video_Download_State_Finish @"1"
#define Video_Download_State_Downloading @"2"
#define Video_Download_State_Pause @"3"
#define Video_Download_State_Delete @"4"



#define Main_Delegate ((AppDelegate *)[[UIApplication sharedApplication] delegate])

#define Document_Path [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) objectAtIndex:0]
#define Download_Path [Document_Path stringByAppendingPathComponent:@"downloadvideo"]
#define MP4_Dir [Document_Path stringByAppendingPathComponent:@"mp4"]
#define MP3_Dir [Document_Path stringByAppendingPathComponent:@"mp3"]
#define Temp [Document_Path stringByAppendingPathComponent:@"temps"]


#define OBJ_NAME(obj) [NSString stringWithUTF8String:object_getClassName(obj)]




#define IS_IPHONE ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone)
#define IS_IPHONE5 ([[UIScreen mainScreen] bounds].size.height == 568)
#define IS_RETINA ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO)

#define RGBA(r, g, b, a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]

//#define CHAR_URL [NSURL URLWithString:@"http://10.30.4.2/T.php"]

